package Extends02;

/**
 * 父类（动物）
 */

public class Animals {
    /**
     * 名字
     */
    private String name;
    /**
     *颜色
     */
    private String color;
    /**
     *年龄
     */
    private int age;

    public Animals(){

    }
    public Animals(String name,String color,int age){
        this.age=age;
        this.color=color;
        this.name=name;
    }
    public void  shout(){
        System.out.println("这只动物可以叫");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
